package com.wzy.controller;

import com.wzy.annotation.SystemLog;
import com.wzy.domain.ResponseResult;
import com.wzy.domain.vo.LinkListVO;
import com.wzy.service.LinkService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("/link")
public class LinkController
{
    private final LinkService linkService;

    /**
     * 查询友链列表
     */
    @GetMapping("/getAllLink")
    @SystemLog(basenessName = "查询友链列表")
    public ResponseResult<List<LinkListVO>> getAllLink()
    {
        return linkService.getAllLink();
    }

}
